package org.genesilico.workflow2.graphs.tests;

import org.genesilico.workflow2.graphs.isomorphism.PossibilitySet;
import org.junit.Test;


public class PermutationsTest {

	/**
	 * Creates a possibility set and enumerates all possible permutations to the
	 * console.
	 */
	@Test
	public void test() {
		PossibilitySet ps = new PossibilitySet();

		for (int i = 0; i < 8; i++) {
			ps.possibilities.add(i);
		}

		int count = 0;
		while (ps.getNextPermutation()) {
			System.out.println(ps.possibilities);
			count++;
		}
		System.out.println(count);
	}
}
